﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
    <script type="text/javascript">
var secs = 30; //6为倒计时秒数
for(i=0;i<=secs;i++) 
{
    window.setTimeout("update(" + i + ")", i * 100);
}
function update(num) 
{
    if(num == secs) 
    {
        window.location.href="index.html";
//        window.location.href=location.hostname+"/DotNet.Web/zh/index.html"; //2.htm为到时跳转的页面URL       
        document.getElementById("return_index").attributes("href",location.hostname+"/DotNet.Web/zh/index.html");
            
    }
    else
    {
        printnr = secs-num;
        document.getElementById('sec').innerHTML = printnr;
    }
}
</script> 
</head>
<body>
<span>很抱歉,网站发生错误,<a href="" id="return_index">网站首页</a></span>
<div id="sec"></div>
</body>
</html>
